package cn.south.campus.business.model.entity;

import cn.south.campus.business.model.enums.WalletEnums;
import cn.south.campus.common.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 钱包流水表
 * </p>
 *
 * @author chow
 * @since 2024-11-14
 */
@EqualsAndHashCode(callSuper = true)
@TableName("campus_wallet_log")
@Data
public class WalletLog extends BaseEntity {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 类型
     *
     * @see WalletEnums.WalletTypeEnums
     */
    private Integer type;

    /**
     * 状态
     *
     * @see WalletEnums.WalletLogStatusEnums
     */
    private Integer status;

    /**
     * 描述
     */
    private String description;

    /**
     * 关联订单
     */
    private String orderNo;

}
